//
// Created by jyc on 2021/10/2.
//

#ifndef BFALCOR_LOGGER_H
#define BFALCOR_LOGGER_H
#include <string>
namespace Bonnie{
    void LogError(const std::string& msg);
    void LogInfo(const std::string& msg);
    void LogWarning(const std::string& msg);
}
#ifdef _DEBUG
#define Bonnie_Assert(res,desc) {if((res) == false) LogError(desc);}
#else
#define Bonnie_Assert(res,desc) {}
#endif

#define Bonnie_Should_Not_Be_Here() Bonnie_Assert(false,"should not be here");
#endif //BFALCOR_LOGGER_H
